#!/usr/bin/python3
#  打印如下：
#  ######
#  #    #
#  #    #
#  ######

width = int(input("Input width:"))
if width>1:
    line1 = line4 =  "#" * width
    line2 = line3 = "#" + " " * (width-2) + "#"
    print(line1,line2,line3,line4,sep="\n")
else:
    print("Your input is wrong!")
